You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLValue Class > TOpenCLValue Methods > TOpenCLValue.RealPart Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLValue.RealPart Method

Gets real part of the complex value.

Syntax
C#
Visual Basic
public TOpenCLValue RealPart([In] TOpenCLValue Vec);

The method gets the real part of the complex value stored in Vec and stores the real results in the calling object. FloatPrecision and TOpenCLBase.ComplexComplexproperties of the calling object are set implicitly to match Vec object. Vec TOpenCLBase.ComplexComplexproperty must be true otherwise an exception is raised.

var a,b: TOpenCLValue; begin CreateIt(a,b); try a.Copy(Cplx(2,3)); // = [2+3i] b.RealPart(a); // b = [2] finally FreeIt(a,b); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!